﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Aluetjen.EmailService.Infrastructure.Persistence;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using log4net.Appender;

namespace Aluetjen.EmailService.Web.SystemTests
{
    [TestClass]
    public class NHibernateInfrastructureTests
    {
        [TestInitialize]
        public void Initialize()
        {
            log4net.Config.BasicConfigurator.Configure(new ConsoleAppender());
        }

        [TestMethod]
        public void SetUpSchema()
        {
            var helper = new NHibernateHelper(System.Configuration.ConfigurationManager.ConnectionStrings["EmailService"].ConnectionString);

            var factory = helper.SessionFactory;
            var test = factory.OpenSession();
        }
    }
}
